/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package helpdiabetesj2me;

import java.util.Date;


public class ActiveInsulinEventBuilder {
    private Date date;
    private float amount;
    private int recordStoreId;
    private int durationInMinutes;

    public ActiveInsulinEventBuilder() {
        date = new Date();
        amount  = 0;
        durationInMinutes = 0;
    }

    public ActiveInsulinEventBuilder setDate(Date date) {
        this.date = date;
        return this;
    }

    public ActiveInsulinEventBuilder setAmount(float amount) {
        this.amount = amount;
        return this;
    }
    
    public ActiveInsulinEventBuilder setRecordStoreId(int recordStoreId) {
        this.recordStoreId = recordStoreId;
        return this;
    }
    
    public ActiveInsulinEventBuilder setDurationInMinutes(int durationInMinutes) {
        this.durationInMinutes = durationInMinutes;
        return this;
    }

    public ActiveInsulinEvent createActiveInsulinEvent() {
        return new ActiveInsulinEvent(date, amount, durationInMinutes, recordStoreId);
    }
    
}
